<template>
  <div class="home">
    <!-- search -->
    <Search />
    <!-- grid -->
    <Grid />
    <!-- footer -->
    <div class="footer" @click="solve">
      <img src="../images/10.png" alt />
      <span>有问题点击团团帮你解决哦</span>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src
import Search from "@/components/Search/search.vue";
import Grid from "@/components/Grid/grid.vue";
export default {
  name: "Home",
  components: {
    Search,
    Grid,
  },
  methods: {
    solve() {
      this.$toast("努力解决中");
      setTimeout(() => {
        this.$toast("功能在开发中");
      }, 2000);
    },
  },
};
</script>

<style scoped lang="scss">
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  img {
    width: 80px;
  }
  span {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
  }
}
</style>
